package com.baige.api.app.controller;

import com.baige.api.app.sdk.response.BannerResponse;
import com.baige.common.core.Result;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author wulg
 * @date 2018/12/13.
 */
@Api(value = "ModuleController", description = "首页模块接口", produces = org.springframework.http.MediaType.APPLICATION_JSON_VALUE)
@RestController
@RequestMapping("/api/rest/module")
public class ModuleController
{
    private static final Logger logger = LoggerFactory.getLogger(ModuleController.class);

    /**
     * banner列表
     * @return Result<List<BannerResponse>>
     */
    @GetMapping(value = "/v1", produces = {"application/json;charset=UTF-8", "application/xml;charset=UTF-8"})
    @ApiOperation(value = "banner列表", notes = "banner列表", httpMethod = "GET", produces = org.springframework.http.MediaType.APPLICATION_JSON_VALUE)
    public Result<List<BannerResponse>> getBannerList() {
        return null;
    }


}
